package com.lanbu.system.domain.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document(collection = "team_members")
public class MongoTeamMembers {

    @Id
    private ObjectId id;

    @Field("teamId")
    private ObjectId teamId;

    @Field("userId")
    private ObjectId userId;

    @Field("name")
    private String name;

    @Field("avatar")
    private String avatar;
    @Field("role")
    private String role;

    @Field("status")
    private String status;
    @Field("updateTime")
    private Date updateTime;
    @Field("createAt")
    private Date createAt;
    @Field("createTime")
    private String createTime;

    @Field("defaultTeam")
    private boolean defaultTeam;

    @Field("__v")
    private int version;
}
